package com.zff.rental.common;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDTO;

/**
 * @author HCY
 */
public class PageParamsTools {


    public <T> IPage<T> toMybatisPage(PageParams params) {
        Integer page = params.getPage();
        Integer size = params.getSize();

        return PageDTO.of(page, size);
    }
}
